﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Forms.Local
{
    public class RelationColumn
    {
        [DefaultValue("")]
        public string ParentName
        {
            get
            {
                return this._ParentName;
            }
            set
            {
                this._ParentName = value;
            }
        }
        private string _ParentName;

        [DefaultValue("")]
        public string ChildName
        {
            get
            {
                return this._ChildName;
            }
            set
            {
                this._ChildName = value;
            }
        }
        private string _ChildName;


        [DefaultValue(typeof(RelationColumnType), "Field")]
        public RelationColumnType Type
        {
            get
            {
                return this._RelationColumnType;
            }
            set
            {
                this._RelationColumnType = value;
            }
        }
        private RelationColumnType _RelationColumnType = RelationColumnType.Field;
    }

    public enum RelationColumnType
    {

        /// <summary>
        ///     ''' 字段
        ///     ''' </summary>
        ///     ''' <remarks></remarks>
        Field = 0,

        /// <summary>
        ///     ''' 字符
        ///     ''' </summary>
        ///     ''' <remarks></remarks>
        String = 1
    }

}
